//
//  PVMUIManager.swift
//  PVMUI
//
//  Created by caikaixuan on 2022/5/17.
//

import UIKit

public enum PVMUITabBar{
    case TabBarHome
    case TabBarRecord
    case TabBarSetting
}

public class PVMUIManager: NSObject {
    public static let shared = PVMUIManager()
    public override init(){}
    
    public var config:PVMUIConfig = PVMUIConfig.init()
    
    //通过配置启动UI
    public func startUI(_ configs: PVMUIConfig){
        config = configs
        
    }
    
    public func getTabBarVC(_ tabbarType: PVMUITabBar) -> UIViewController{
        switch tabbarType {
            case .TabBarHome:
                return AlbumVC.init(viewControllerClasses: [], andTheirTitles: [])
            case .TabBarRecord:
                return DeviceViewController.init()
            case .TabBarSetting:
                return SettingVC.init()
        }
    }
    
}
